V
Vale
Hello
I have a word document formed from tables that do not have to be subdivided
in 2 pages: in fact during their creation I have inserted a command which if
the table is subdivided is moved in the successive page. Now I would save my
document and I use a SaveFileDialog.
But I have three problems
1) When I press Save the dialog is reopened and the document isn’t saved
until I have not pressed Save the second time
2) I have set up as filter the extension .doc but the document is saved as
“Model of document†and I instead would that it was saved like document
3) serious ; when I open the saved document I find a table that it is
divided in two pages!!! It seems that it has reorganized the document! why I
cannot save it as I have created it?
This is the code that I have used:
‘Save_test is the SaveFileDialog
‘Wordoc is my document
Wordoc.Protect(WdProtectionType.wdAllowOnlyReading, , "psycodec")
Wordapp.Visible = True
Save_test.FileName = List_test1.Text
Save_test.DefaultExt = "|*.doc"
Save_test.ShowHelp = False
Save_test.InitialDirectory = "Risorse del computer"
Save_test.RestoreDirectory = True
Save_test.Filter = "Documento Word(*.doc)|*.doc"
Save_test.ShowDialog()
If Save_test.FileName <> "" And Save_test.ShowDialog() =
System.Windows.Forms.DialogResult.OK Then
Wordoc.SaveAs(Save_test.FileName, Save_test.FilterIndex)
Wordoc.Close()
Wordapp.Quit()
End If
I hope that you have understand my problem
Thank you
I have a word document formed from tables that do not have to be subdivided
in 2 pages: in fact during their creation I have inserted a command which if
the table is subdivided is moved in the successive page. Now I would save my
document and I use a SaveFileDialog.
But I have three problems
1) When I press Save the dialog is reopened and the document isn’t saved
until I have not pressed Save the second time
2) I have set up as filter the extension .doc but the document is saved as
“Model of document†and I instead would that it was saved like document
3) serious ; when I open the saved document I find a table that it is
divided in two pages!!! It seems that it has reorganized the document! why I
cannot save it as I have created it?
This is the code that I have used:
‘Save_test is the SaveFileDialog
‘Wordoc is my document
Wordoc.Protect(WdProtectionType.wdAllowOnlyReading, , "psycodec")
Wordapp.Visible = True
Save_test.FileName = List_test1.Text
Save_test.DefaultExt = "|*.doc"
Save_test.ShowHelp = False
Save_test.InitialDirectory = "Risorse del computer"
Save_test.RestoreDirectory = True
Save_test.Filter = "Documento Word(*.doc)|*.doc"
Save_test.ShowDialog()
If Save_test.FileName <> "" And Save_test.ShowDialog() =
System.Windows.Forms.DialogResult.OK Then
Wordoc.SaveAs(Save_test.FileName, Save_test.FilterIndex)
Wordoc.Close()
Wordapp.Quit()
End If
I hope that you have understand my problem
Thank you