פוקוס

orengolan

New member
המשך משרשורים מעמ' קודם

אחרי עמל רב מצאתי את הפתרון. ההוספה לשרשור בדף 2 לא העלתה ל-1 את ההודעה ולכן הנה היא שוב: מה שרציתי בסך הכל זה איך עושים n\ ב- VB. התשובה שחיפשתי ומצאתי זה עתה היא: vbCr. כעת כשאני יודע לעשות ב-DATAGRID שתי שורות בעזרת ה- vbCr, הייתי רוצה לדעת איך אני עושה שאחת מהן תהיה STRICK OUT והשניה לא. תודה, תומר
 

orengolan

New member
פוקוס

באפליקציית WEB FORM יש לי 2 TEXT BOX וכפתור אחד לכל תיבה שמפעיל אותו (כפתור OK). ברצוני לגרום לכפתור המתאים להלחץ ע"י ENTER ברגע שהיה שינוי בTEXT BOX המתאים (באירוע TEXT CHANGED). כיצד אני עושה זאת?
 

yuval k

New member
אז למה לא אמרת שבאפליקציה חלונאית?

 

orengolan

New member
כי זה לא

1. זה לא אפליקציה חלונאית זה WEB. 2. למה רוב התשובות שלך הם בשאלות?
3. יש לך תשובה לשאלה שלי?
 

adam222

New member
יהודים, עונים בשאלה לכל שאלה...

אולי לכן רק ביהדות יש יוצאים לשאלה ובדתות אחרות זה או דתיים או חילוניים...
 

yuval k

New member
1. ב-web, יורדים שורה רק ע"י התגית

br... 2. לפעמים צריך לקבל עוד פרטים כדי לעזור
3. שוב - אתה מדבר על קונטקסט וובי? פשוט עטוף את הטקסט בתגית המתאימה לעיצוב שאתה מבקש.
 

orengolan

New member
איך בדיוק?

בקשר ל-3: איך בדיוק אני עושה את זה? (אם הייתי יודע לא נראה לי שהייתי שואל). תודה על הסבלות. תומר
 

yuval k

New member
../images/Emo52.gif

התגית <s>..</s>, או המאפיין text-decoration: line-through ב-CSS (הדרך העדיפה).
 

orengolan

New member
אוטומציה WORD\OUTLOOK

1. does anyone know how do i send an email through a vb.net web forms application? i'm not talking about a "write us buttom", i need to do the whole mail including sending it (by the program). 2. i'm trying to do a word automation and this is the error i get when try to open a new document: Access is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.UnauthorizedAccessException: Access is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user. thanks, tommer To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
 

yuval k

New member
אממ...

קודם כל, אם אתה כותב באנגלית, אנא יישר ההודעה לשמאל... תודה
1. עיין בתיעוד על מרחב השמות System.Web.Mail. 2. כתוב, לא? אין לך הרשאות כתיבה לתיקייה.
 

orengolan

New member
../images/Emo24.gifנתחיל הפעם מ-2

נתחיל הפעם מ-2: 2. למרות שניסית ללמד אותי כמה פעמיים, השתמשתי ב- [תחילת קוד] [סיום קוד] וזה עדיין לא מיישר, מצטער. 1. אתה גדול!!!, זה עובד. (אחרי יום שלם שלא הצלחתי לעשות אוט' לאי-מייל. שוב תודה. תומר נ.ב. אנחנו מגישים את הפרויקט שלנו ביום ו' כך שממחר נפסיק לשגע אותך.
 

yuval k

New member
../images/Emo50.gif

אתה בטוח שהקוד שלך מוקף ב-|ה‏קוד| ו-|סקוד‏|?
 

orengolan

New member
אוטומציה WORD

כמובטח עוד שאלה: יש לי אוטומציית WORD שעובדת בפרויקט WINFORM (פותח מסמך ויוצרת בו טבלה וממלאת אותה מהבסיס נתונים). אותו הקוד אינו עובד משום מה בפרויקט WEBFORM. שינינו את ההרשאה בעקבות המלצתכם, והוא לא עף הפעם, אך גם לא נפתח (ה-VISIBLE שלו TRUE). ניתן לראות שהמסמך קיים דרך ה-TASK MANAGER אך לא ניתן לראות את המסמך. הקוד:
Sub CreateWordAtt(ByVal OrderNO As Integer) Dim wrdApp As Word.ApplicationClass = New Word.ApplicationClass Dim wrdSelection As Word.Selection Dim wrdDoc As Word._Document '= wrdApp.Documents.Add(dotFileStr) Dim StrToAdd As String Dim ProductOrderCustRow As DsMakolet.product_orderRow Dim ProductOrderCustDataTable As DsMakolet.product_orderDataTable = MakoletDataSet.product_order MakoletDataSet.product_order.Clear() ProductOrdersCustDataAdapter.SelectCommand.Parameters("customer").Value = Session("Login") ProductOrdersCustDataAdapter.SelectCommand.Parameters("orders").Value = OrderNO 'current order parameter for the query uses the admin order ProductOrdersCustDataAdapter.Fill(MakoletDataSet.product_order) Dim ProdName, Details, CompName, Price, Unit, Amount, Total As String Dim i, j As Integer Try ' Create an instance of Word and make it visible. wrdApp.Visible = True ' Add a new document. wrdDoc = wrdApp.Documents.Add() wrdDoc.Select() wrdSelection = wrdApp.Selection() 'bold font on wrdSelection.Font.Bold = True 'underline on If wrdSelection.Font.Underline = False Then wrdSelection.Font.Underline = True Else wrdSelection.Font.Underline = False End If ' Create a string and insert it in the document. StrToAdd = "הזמנה מספר: " & OrderNO & vbCr & _ "רשימת המוצרים שרכשת:" wrdSelection.ParagraphFormat.Alignment = _ Word.WdParagraphAlignment.wdAlignParagraphCenter wrdSelection.TypeText(StrToAdd) 'underline off If wrdSelection.Font.Underline = False Then wrdSelection.Font.Underline = True Else wrdSelection.Font.Underline = False End If 'bold font off wrdSelection.Font.Bold = False 'Insert blank lines. wrdApp.Selection.TypeParagraph() wrdApp.Selection.TypeParagraph() wrdSelection.ParagraphFormat.Alignment = _ Word.WdParagraphAlignment.wdAlignParagraphRight ' Insert a new table with 9 rows and 4 columns. wrdDoc.Tables.Add(wrdSelection.Range, NumRows:=ProductOrderCustDataTable.Count + 1, _ NumColumns:=7) With wrdDoc.Tables.Item(1) ' Set the column widths. .Columns.Item(1).SetWidth(70, Word.WdRulerStyle.wdAdjustNone) .Columns.Item(2).SetWidth(90, Word.WdRulerStyle.wdAdjustNone) .Columns.Item(3).SetWidth(70, Word.WdRulerStyle.wdAdjustNone) .Columns.Item(4).SetWidth(50, Word.WdRulerStyle.wdAdjustNone) .Columns.Item(5).SetWidth(50, Word.WdRulerStyle.wdAdjustNone) .Columns.Item(6).SetWidth(30, Word.WdRulerStyle.wdAdjustNone) .Columns.Item(7).SetWidth(50, Word.WdRulerStyle.wdAdjustNone) 'Set the shading on the first row to light gray. .Rows.Item(1).Cells.Shading.BackgroundPatternColorIndex = _ Word.WdColorIndex.wdGray25 'Bold the first row. .Rows.Item(1).Range.Bold = True 'Center the text in row 1. For j = 1 To j <= 7 .Cell(1, j).Range.Paragraphs.Alignment = _ Word.WdParagraphAlignment.wdAlignParagraphCenter Next ' Fill each row of the table with data. FillRow(wrdDoc, 1, "שם", "פרטים", "חברה", "מחיר", "יחידה", "כמות", "סך") i = 1 For Each ProductOrderCustRow In ProductOrderCustDataTable &​
 

orengolan

New member
יש תשובה למישהו?

יש למישהו תשובה לבעיה? אני צריך תשובה דחוף עד מחר בבוקר, אני כאן כל הלילה אם מישהו יכול לעזור. תודה.
 

gilad g

New member
זה לא יעבוד כי

מה שאתה מנסה לעשות פה זה להריץ Word על השרת (IIS), וזה יוצר בעית אבטחה
 

orengolan

New member
מה שעובד - לא נוגעים בו.

עבד לי ה- VBCR וכפי שלמדתי פעם ממישהי חכמה: מה שעובד - לא נוגעים בו. וכך עשיתי. תודה בכל מקרה.
 

adam222

New member
אתה צריך להוסיף

Listener לאירוע של TextBox_Changed ובתוך הארוע לבצע קריאה למתודה Click של הכפתור המיועד תוך העברת שני הפרמטרים כ-Null
 
למעלה